package ywh.event
{
	import ywh.list.MediaList;
	import flash.events.Event;
	
	/**
	 * media列表事件;
	 * @author 杨伟华
	 * @version 2.0
	 *
	 * Created 1/21/2013 12:56 AM
	 */
	public class MediaListEvent extends Event
	{
		/**
		 * 媒体列表载入中
		 */
		public static const LIST_LOADING:String = "LIST_LOADING";
		/**
		 * 媒体列表准备;
		 */
		public static const LIST_READY:String = "LIST_READY";
		
		private var _list:MediaList;
		
		public function MediaListEvent(type:String, list:MediaList)
		{
			super(type, false, false);
			_list = list;
		}
		
		public override function clone():Event
		{
			return new MediaListEvent(type, list);
		}
		
		public override function toString():String
		{
			return formatToString("ListEvent", "type", "list", "bubbles", "cancelable", "eventPhase");
		}
		
		public function get list():MediaList
		{
			return _list;
		}
	
	}

}